package com.xianan.xuhui.netsecurityproject.exception;

public enum BizExceptionEnum {
    SUCCESS(100000, "SUCCESS"),//success

    //5000000～5000199系统通用异常
    UNKNOWN_ERROR(5000000, "UNKNOWN_ERROR"),//未知系统异常
    NOT_FIND_DATA(5000001, "NOT_FIND_DATA"),//数据不存在En
    ARGS_ERROR(5000002, "ARGS_ERROR"),//入参错误
    BIZ_ERROR(5000003, "BIZ_ERROR"),//业务异常
    REQUEST_LIMIT_ERROR(5000004, "REQUEST_LIMIT_ERROR"),//操作过于频繁
    CREATE_FAIL(5000005, "CREATE_FAIL"),//创建失败
    UPDATE_FAIL(5000006, "UPDATE_FAIL"),//更新失败
    DELETE_FAIL(5000007, "DELETE_FAIL"),//删除失败
    EMAIL_IS_NOT_TRUE(5000008, "EMAIL_IS_NOT_TRUE"),//邮箱格式不正确
    DATA_IS_EMPTY(5000009, "DATA_IS_EMPTY"),//数据为空
    GET_PICTURE_FAIL(5000010, "GET_PICTURE_FAIL"),//获取图片失败
    DATA_IS_NOT_EXISTS(5000011, "DATA_IS_NOT_EXISTS"),//数据不存在
    UPLOAD_VIDEO_FAIL(5000012, "UPLOAD_VIDEO_FAIL"),//上传视频失败
    UPLOAD_FILE_FAIL(5000013, "UPLOAD_FILE_FAIL"),//上传文件失败
    GET_HEADER_FAIL(5000014, "GET_HEADER_FAIL"),//获取头部信息失败
    DOWNLOAD_FILE_FAIL(5000015, "DOWNLOAD_FILE_FAIL"),//下载文件失败
    FILE_IS_NOT_EXISTS(5000016, "FILE_IS_NOT_EXISTS"),//文件不存在
    FILE_IS_NOT_CORRECT(5000017, "FILE_IS_NOT_CORRECT"),//文件不正确
    EXPORT_EXCEL_FAIL(5000018, "EXPORT_EXCEL_FAIL"),//导出excel文件失败
    EMP_IS_NOT_BELONG_THIS_TRAINING(5000019, "EMP_IS_NOT_BELONG_THIS_TRAINING"),//员工未参加该培训
    LABEL_NAME_IS_EXISTS(5000020, "LABEL_NAME_IS_EXISTS"),//标签名已存在
    LABEL_IS_NOT_EXISTS(5000021, "LABEL_IS_NOT_EXISTS"),//标签不存在
    NOT_OBTAINED_RIGHT_FILE_STREAM(5000022, "NOT_OBTAINED_RIGHT_FILE_STREAM"),//没有获取到正确的文件流
    OBTAINED_FILE_HASH_ERROR(5000023, "OBTAINED_FILE_HASH_ERROR"),//获取文件哈希值失败
    BSAE64_TO_STR_FAIL(5000024, "BSAE64_TO_STR_FAIL"),//base64转化字符串失败
    BASE64_DECODE_FAIL(5000025, "BASE64_DECODE_FAIL"),//base64解码失败
    BASE64_ENCODE_FAIL(5000026, "BASE64_ENCODE_FAIL"),//base64编码失败
    SEND_MAIL_MESSAGE_FIAL(5000027, "SEND_MAIL_MESSAGE_FIAL"),//发送邮件消息失败
    NO_PERMISSION(5000028, "NO_PERMISSION"),//无权限查看
    SIGNATURE_ERROR(5000029, "SIGNATURE_ERROR"),//签名错误
    EXCEL_SUFFIX_ERROR(5000030, "EXCEL_SUFFIX_ERROR"),//EXCEL文件格式错误
    EXCEL_READ_ERROR(5000031, "EXCEL_READ_ERROR"),//EXCEL读取失败
    EXCEL_WRITE_ERROR(5000032, "EXCEL_WRITE_ERROR"),//EXCEL写入失败
    TOO_MANY_TIMES(5000033, "TOO_MANY_TIMES"),//操作频繁，请稍后再试
    UPLOAD_FILE_TYPE_ERROR(5000034, "UPLOAD_FILE_TYPE_ERROR"),//仅支持以下类型的文件：
    LARK_PHONE_ERROR(5000035, "LARK_PHONE_ERROR"),  // 飞书手机号异常(手机号不合法)

    //5000200～5000399用户（员工、部门、角色、权限、登录等）异常
    USER_NOT_FOUND_ERROR(5000200, "USER_NOT_FOUND_ERROR"),//无效的用户
    EMP_NOT_EMPTY(5000201, "EMP_NOT_EMPTY"),//部门下的员工人数不为0
    DEPT_NOT_NULL(5000202, "DEPT_NOT_NULL"),//部门空异常
    NEXT_DEPT_IS_NOT_EMPTY(5000203, "NEXT_DEPT_IS_NOT_EMPTY"),//存在子级部门
    MENU_IS_EMPTY(5000204, "MENU_IS_EMPTY"),//菜单为空
    DELETE_DEPT_FAIL(5000205, "DELETE_DEPT_FAIL"),//删除部门失败
    MANAGER_IS_NOT_EXISTS(5000206, "MANAGER_IS_NOT_EXISTS"),//负责人不存在
    DEPT_NAME_HAS_EXISTS(5000207, "DEPT_NAME_HAS_EXISTS"),//部门名已存在
    PARENT_DEPT_HAS_NOT_EXISTS(5000208, "PARENT_DEPT_HAS_NOT_EXISTS"),//父级部门不存在
    DEPT_IS_NOT_EXISTS(5000209, "DEPT_IS_NOT_EXISTS"),//部门不存在
    EMP_IS_NOT_EXISTS(5000210, "EMP_IS_NOT_EXISTS"),//员工不存在
    EMPGROUP_NAME_CAN_NOT_EMPTY(5000211, "EMPGROUP_NAME_CAN_NOT_EMPTY"),//员工组名称不能为空
    EMPGROUP_NAME_HAS_REPEAT(5000212, "EMPGROUP_NAME_HAS_REPEAT"),//员工组名称重复
    EMPGROUP_IS_NOT_EXISTS(5000213, "EMPGROUP_IS_NOT_EXISTS"),//员工组不存在
    DELETE_CATEGORIES_EMP_FAIL(5000214, "DELETE_CATEGORIES_EMP_FAIL"),//删除员工组员工失败
    EMPGROUP_EMP_IS_EMPTY(5000215, "EMPGROUP_EMP_IS_EMPTY"),//员工组员工为空
    NEXT_DEPT_IS_EMPTY(5000216, "NEXT_DEPT_IS_EMPTY"),//子级部门为空
    SETUP_DEPT_ERROR(5000217, "SETUP_DEPT_ERROR"),//设置部门错误
    ARCHOVE_SAVE_FAIL(5000218, "ARCHOVE_SAVE_FAIL"),//员工组存档失败
    CPOY_GROUP_FAIL(5000219, "CPOY_GROUP_FAIL"),//复制员工组失败
    EMP_IS_EMPTY(5000220, "EMP_IS_EMPTY"),//员工为空
    ARCHIVE_GROUP_IS_EMPTY(5000221, "ARCHIVE_GROUP_IS_EMPTY"),//存档的员工组为空
    PERMISSION_IS_NOT_EXISTS(5000222, "PERMISSION_IS_NOT_EXISTS"),//权限不存在
    PERMISSION_IS_EMPTY(5000223, "PERMISSION_IS_EMPTY"),//权限为空
    SON_PERMISSION_IS_NOT_EMPTY(5000224, "SON_PERMISSION_IS_NOT_EMPTY"),//存在子级权限
    ROLE_NAME_REPEAT(5000225, "ROLE_NAME_REPEAT"),//角色名称重复
    ROLE_IS_NOT_EXISTS(5000226, "ROLE_IS_NOT_EXISTS"),//角色不存在
    ROLE_IS_EMPTY(5000227, "ROLE_IS_EMPTY"),//角色为空
    EMP_NAME_AND_DEP_NAME_CAN_NOT_EMPTY(5000228, "EMP_NAME_AND_DEP_NAME_CAN_NOT_EMPTY"),//员工名与部门不能为空
    EMAIL_HAS_EXISTS(5000229, "EMAIL_HAS_EXISTS"),//邮箱已存在
    MAIL_MESSAGE_IS_EMPTY(5000230, "MAIL_MESSAGE_IS_EMPTY"),//邮箱信息为空
    EMAIL_IS_NOT_EXISTS(5000231, "EMAIL_IS_NOT_EXISTS"),//邮箱不存在
    PASSWORD_IS_NOT_TRUE(5000232, "PASSWORD_IS_NOT_TRUE"),//密码错误
    CODE_IS_NOT_TRUE(5000233 , "CODE_IS_NOT_TRUE"),//验证码错误
    PERMISSION_NAME_REPEAT(5000234, "PERMISSION_NAME_REPEAT"),//权限名称重复
    USER_MESSAGE_IS_NOT_EXISTS(5000235, "USER_MESSAGE_IS_NOT_EXISTS"),//用户信息不存在
    INPUT_CONFIRM_PASSWORD_IS_NOT_SAME(5000236, "INPUT_CONFIRM_PASSWORD_IS_NOT_SAME"),//确认密码不正确
    PHONE_NUMBER_IS_NOT_TRUE(5000237, "PHONE_NUMBER_IS_NOT_TRUE"),//手机号码不正确
    PHONE_NUMBER_IS_EMPTY(5000238 , "PHONE_NUMBER_IS_EMPTY"),//手机号码为空
    SEND_PHONE_MESSAGE_FAIL(5000239 , "SEND_PHONE_MESSAGE_FAIL"),//发送手机消息失败
    EMP_HAS_EXISTS(5000240 , "EMP_HAS_EXISTS"),//员工已经存在
    GROUP_HAS_EMP_NO_DELETE(5000241 , "GROUP_HAS_EMP_NO_DELETE"),//组别下存在员工，不能删除
    EMP_UNBIND_TEL(5000242, "EMP_UNBIND_TEL"),//员工未绑定手机号
    TASK_QUESTIONNAIRE_IS_NOT_EXISTS(5000243, "TASK_QUESTIONNAIRE_IS_NOT_EXISTS"),//任务问卷调查试题不存在
    EMPGROUP_CONTAINS_EMPLOYEE(5000244, "EMPGROUP_CONTAINS_EMPLOYEE"),//员工组下存在员工
    TRAINING_EMPGROUP_HAS_RELATIONSHIP(5000245, "TRAINING_EMPGROUP_HAS_RELATIONSHIP"),//存在培训与该组别有关联
    TASK_EMPGROUP_HAS_RELATIONSHIP(5000246, "TASK_EMPGROUP_HAS_RELATIONSHIP"),//存在任务与该组别有关联
    CONTACT_ADMIN_TO_ADD_TEL(5000247, "CONTACT_ADMIN_TO_ADD_TEL"),//请联系管理员在后台添加该手机号
    TEL_BIND_OTHER_EMPLOYEE(5000248, "TEL_BIND_OTHER_EMPLOYEE"),//手机号已被其他用户绑定
    USERNAME_IS_NOT_BLANK(50002250, "USERNAME_IS_NOT_BLANK"),//用户名不能为空
    URL_IS_OVERTIME(50002251, "URL_IS_OVERTIME"),//链接超时，请联系管理员重新获取
    ROLE_HAS_EMPLOYEE(50002252, "ROLE_HAS_EMPLOYEE"),//角色存在关联员工，不能删除
    PASSWORD_IS_NOT_TRUE_BAN(50002253, "PASSWORD_IS_NOT_TRUE_BAN"),//密码错误,限制登录
    PASSWORD_IS_NOT_TRUE_LIMIT(50002254, "PASSWORD_IS_NOT_TRUE_LIMIT"),//密码错误,限制登录
    PASSWORD_DECODE_FAIL(50002255, "PASSWORD_DECODE_FAIL"),//密码解码失败
    DOMAIN_IS_NOT_EXISTS(5000256, "DOMAIN_IS_NOT_EXISTS"),//域控连接失败
    DOMAIN_NAME_REPEAT(5000257, "DOMAIN_NAME_REPEAT"),//域控名称重复
    INPUT_CONFIRM_EMAIL_IS_NOT_SAME(5000258, "INPUT_CONFIRM_EMAIL_IS_NOT_SAME"),//确认邮箱不正确
    DOMAIN_NOT_FOUND_ERROR(5000259, "DOMAIN_NOT_FOUND_ERROR"),//无效的域控
    SESSION_NOT_FIND_ERROR( 5000260, "SESSION_NOT_FIND_ERROR"),// 登陆失效或未登录


    //5000300～5000599 素材、行业、培训、任务、报告相关异常
    CARD_IS_NOT_EXISTS(5000301, "CARD_IS_NOT_EXISTS"),//卡片不存在
    CARD_IS_EMPTY(5000302, "CARD_IS_EMPTY"),//卡片为空
    CARD_GROUP_IS_NOT_EXISTS(5000303, "CARD_GROUP_IS_NOT_EXISTS"),//卡片组不存在
    CARD_GROUP_IS_EMPTY(5000304, "CARD_GROUP_IS_EMPTY"),//卡片组为空
    VIDEOFOOTAGE_IS_NOT_EXISTS(5000305, "VIDEOFOOTAGE_IS_NOT_EXISTS"),//视频素材不存在
    VIDEOFOOTAGE_IS_EMPTY(5000306, "VIDEOFOOTAGE_IS_EMPTY"),//视频素材为空
    CHAPTER_IS_NOT_EXISTS(5000307, "CHAPTER_IS_NOT_EXISTS"),//章节不存在
    CHAPTER_ITEM_IS_NOT_EXISTS(5000308, "CHAPTER_ITEM_IS_NOT_EXISTS"),//章节项不存在
    CHAPTER_IS_EMPTY(5000309, "CHAPTER_IS_EMPTY"),//章节为空
    TRAINING_IS_NOT_EXISTS(5000310, "TRAINING_IS_NOT_EXISTS"),//培训不存在
    TRAINING_IS_EMPTY(5000311, "TRAINING_IS_EMPTY"),//培训为空
    QUESTION_IS_NOT_EXISTS(5000312, "QUESTION_IS_NOT_EXISTS"),//试题不存在
    TRAINING_FOOTAGE_IS_NOT_EXISTS(5000313, "TRAINING_FOOTAGE_IS_NOT_EXISTS"),//培训素材不存在
    INDUSTRY_IS_NOT_EXISTS(5000314, "INDUSTRY_IS_NOT_EXISTS"),//行业不存在
    FOOTAGE_IS_NOT_EXISTS(5000315, "FOOTAGE_IS_NOT_EXISTS"),//素材不存在
    ARTICLE_FOOTAGE_IS_NOT_EXISTS(5000316, "ARTICLE_FOOTAGE_IS_NOT_EXISTS"),//文章素材不存在
    CHAPTER_ITEM_HAS_BINDING(5000317, "CHAPTER_ITEM_HAS_BINDING"),//该章节项已经绑定
    CARD_FOOTAGE_IS_NOT_EXISTS(5000318, "CARD_FOOTAGE_IS_NOT_EXISTS"),//卡片素材不存在
    TEMPLATE_RELEVANT_IS_NOT_EXISTS(5000319, "TEMPLATE_RELEVANT_IS_NOT_EXISTS"),//模板分组不存在
    TEMPLATE_RELEVANT_IS_NOT_EMPTY(5000320, "TEMPLATE_RELEVANT_IS_NOT_EMPTY"),//模板分组下存在通知模板
    TEMPLATE_RELEVANT_IS_EMPTY(5000321, "TEMPLATE_RELEVANT_IS_EMPTY"),//模板为空
    TRAINING_EMP_PROGRESS_IS_NOT_EXISTS(5000322, "TRAINING_EMP_PROGRESS_IS_NOT_EXISTS"),//该员工培训记录不存在
    INDUSTRY_NAME_IS_EXISTS(5000323, "INDUSTRY_NAME_IS_EXISTS"),//行业名称已存在
    TASK_IS_NOT_EXISTS(5000324, "TASK_IS_NOT_EXISTS"),//任务不存在
    TASK_EMP_IS_NOT_EMPTY(5000325, "TASK_EMP_IS_NOT_EMPTY"),//任务下的员工不为空
    TASK_MARK_PROGRESS_IS_NOT_EXISTS(5000326, "TASK_MARK_PROGRESS_IS_NOT_EXISTS"),//该条员工记录不存在
    TASK_HAS_CLOSE(5000327, "TASK_HAS_CLOSE"),//任务未开启或已经关闭
    TASK_TASKQUESTIONNAIRE_HAS_MAPPING(5000328, "TASK_TASKQUESTIONNAIRE_HAS_MAPPING"),//任务与该任务问卷试题存在关联
    TEMPLATE_CATEGORY_IS_NOT_EXISTS(5000329, "TEMPLATE_CATEGORY_IS_NOT_EXISTS"),//模板分组不存在
    TASK_QUESTIONNAIRE_IS_NOT_EMPTY(5000330, "TASK_QUESTIONNAIRE_IS_NOT_EMPTY"),//问卷调查问题不能为空
    REPORT_TYPE_ERROR(5000331, "REPORT_TYPE_ERROR"),//报告类型错误
    EMP_NOT_FINISH_TRAINING(5000332, "EMP_NOT_FINISH_TRAINING"),//用户未完成培训
    EMP_NOT_FINISH(5000333, "EMP_NOT_FINISH"),//用户未完成
    CERT_NOT_EXISTS(5000334, "CERT_NOT_EXISTS"),//证书不存在
    CERT_DOWNLOAD_FAILED(5000335, "CERT_DOWNLOAD_FAILED"),//证书下载失败
    TRAINING_OVERTIME_CONT_DO(5000336, "TRAINING_OVERTIME_CONT_DO"),//培训已截止，不能继续完成
    TRAINING_STATUS_CANT_DELETE(5000337, "TRAINING_STATUS_CANT_DELETE"),//开起的培训不能删除，请先关闭培训
    QUESTION_HAS_USED_CANT_DELETE(5000338, "QUESTION_HAS_USED_CANT_DELETE"),//试题已被使用，不能删除。
    SMTP_CONFIG_IS_NOT_EXISTS(5000339, "SMTP_CONFIG_IS_NOT_EXISTS"),//邮箱配置不存在。

    //5001000～5001199 公众号、小程序、其他第三发api相关异常
    WX_OFFIACCOUNT_REQ_FIELED(5001000, "WX_OFFIACCOUNT_REQ_FIELED"),//微信公众平台请求失败！
    WX_TOKEN_REQ_FIELED(5001001, "WX_TOKEN_REQ_FIELED"),//获取微信凭证失败
    TRAINING_FOOTAGE_IS_NOT_EXISTS_TRAINING(5001002,"TRAINING_FOOTAGE_IS_NOT_EXISTS_TRAINING"),//培训下不存在该培训素材
    CHAPTER_FOOTAGE_IS_NOT_EXISTS_TRAINING_FOOTAGE(5001003,"CHAPTER_FOOTAGE_IS_NOT_EXISTS_TRAINING_FOOTAGE"),//培训素材下不存在该章节
    CHAPTER_ITEM_IS_NOT_EXISTS_CHAPTER_FOOTAGE(5001004,"CHAPTER_ITEM_IS_NOT_EXISTS_CHAPTER_FOOTAGE"),//章节项不存在与该章节
    FOOTAGE_IS_NOT_EXISTS_CHAPTER_ITEM(5001005,"FOOTAGE_IS_NOT_EXISTS_CHAPTER_ITEM"),//素材不存在与该章节项
    UN_SATISFY_INTO_NEXT_CHAPTER(5001006,"UN_SATISFY_INTO_NEXT_CHAPTER_CONDITION"),//不满足进入下一章
    CHAPTER_IS_NOT_FINISH(5001007,"CHAPTER_IS_NOT_FINISH"),//上一级章节未完成
    ALL_FOOTAGE_IS_NOT_FINISH(5001008,"ALL_FOOTAGE_IS_NOT_FINISH"),//章节项下的素材未全部完成
    ALL_CHAPTERITEM_IS_NOT_FINISH(5001009,"ALL_CHAPTERITEM_IS_NOT_FINISH"),//章节下的章节项未全部完成
    ALL_CHAPTER_IS_NOT_FINISH(5001010,"ALL_CHAPTER_IS_NOT_FINISH"),//培训模块下的章节未全部完成
    ALL_TRAINING_FOOTAGE_IS_NOT_FINISH(5001011,"ALL_TRAINING_FOOTAGE_IS_NOT_FINISH"),//培训下的培训模块未全部完成
    TASK_NOT_CONTAINS_THIS_EMP(5001012,"TASK_NOT_CONTAINS_THIS_EMP"),//任务下不存在该用户
    CHAPTERITEM_CORRECTINGRULE_ERROR(5001013,"CHAPTERITEM_CORRECTINGRULE_ERROR"),//做对题目低于要求做对题目限制
    ANSWER_LIST_IS_NOT_NULL(5001014,"ANSWER_LIST_IS_NOT_NULL"),//答案不能为空
    CARD_NOT_ALL_FINISH(5001015,"CARD_NOT_ALL_FINISH"),//答案不能为空
    ;

    BizExceptionEnum(Integer errorCode, String name) {
        this.errorCode = errorCode;
        this.name = name;
    }

    private Integer errorCode;

    private String name;

    public Integer getErrorCode() {
        return errorCode;
    }

    public String getName() {
        return name;
    }

}
